﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace CarbonMeter
{
   public partial class AboutForm : Form
   {
      public AboutForm(LicenseEventArg licenseArg)
      {
         InitializeComponent();
         lblProductName.Text = licenseArg.productName;

         if (licenseArg.licenseState.Equals("trialExpire") || licenseArg.licenseState.Equals("trialUnknown"))
         {
            lblLicenseState.Text = "Lisansınız Bitmiştir, Lütfen Yeni Lisans Yükleyiniz.";
         }
         else if (licenseArg.licenseState.Equals("trialDays") || licenseArg.licenseState.Equals("trialDate"))
         {
            lblLicenseState.Text = "" + licenseArg.permittedUse + " Günlük Deneme Lisansı";
         }
         else if (licenseArg.licenseState.Equals("trialCount"))
         {
            lblLicenseState.Text = "" + licenseArg.permittedUse + " Kullanımlık Deneme Lisansı";
         }
         else if (licenseArg.licenseState.Equals("registered") || licenseArg.licenseState.Equals("trialUnlimited"))
         {
            lblLicenseState.Text = "Sınırsız Kullanım Hakkına Sahip Lisans";
         }
         
      }
   }
}
